home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / super_fly.swf / scripts / DefineSprite_71 / frame_53 / DoAction.as
Text File  |  2012-01-07  |  430b  |  19 lines

  1. flyCount = "10";
  2. index = "1";
  3. while(flyCount >= index)
  4. {
  5.    if("0" < getProperty("../flyin" add index add "/fly1", _X) and "0" < getProperty("../flyin" add index add "/fly1", _Y))
  6.    {
  7.       set("fline:caught","1");
  8.       pickedOff = index;
  9.       temp = eval("..:flyCaught");
  10.       set("..:flyCaught",temp + "1");
  11.       set("fline:gotcha",index);
  12.       index = "11";
  13.    }
  14.    else
  15.    {
  16.       index += "1";
  17.    }
  18. }
  19.